﻿using System;
using Sharp.DataTransferObject;
using Sharp.Portal;
using Sharp.Portal.AdminLTE;
using Sharp.Portal.Mvc.List;
using Sharp.Portal.Other;

namespace Sharp.WebBooter.Areas.Platform.Models
{
    [Title("岗位管理"), ModuleItem(typeof(JobModel))]
    [DataHandler(ModuleOP.Details, "浏览", 0)]
    [DataHandler(ModuleOP.Create, "新增", 1)]
    [DataHandler(ModuleOP.Edit, "修改", 2)]
    [DataHandler(ModuleOP.Delete, "删除", 3)]
    public partial class JobIndexModel : BSSharpList
    {
        public JobIndexModel()
        {
            this.Feature = ListFeature.MultiSelect | ListFeature.Paging | ListFeature.RowNumber;
            IsUseOrgTreeLayout = true;
        }
        /// <summary>
        /// 主键Id
        /// </summary>
        /// <value>主键Id</value>
        [Column(Hidden = true)]
        public int Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        /// <value>标题</value>
        [Column(Width = 200, Text = "名称"), QueryOption(Option = QueryFeature.DefualtQuery)]
        public string Title { get; set; }

        /// <summary>
        /// 职级
        /// </summary>
        [Column(Width = 120, Text = "职级"), MasterData("Grade")]
        public MasterDataDTO GradeCode { get; set; }

        /// <summary>
        /// 归属组织
        /// </summary>
        [Column(Width = 120, Text = "归属组织", DataIndex = "org.orgPath")]
        public string OrgTitle { get; set; }

        /// <summary>
        /// 入职资质
        /// </summary>
        [Column(Width = 250, Text = "入职资质")]
        public string Qualifications { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Column(Width = 250, Text = "备注")]
        public string Remark { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary> 
        [DateColumn(Width = 140, Text = "修改时间", Format = "YYYY-MM-DD hh:mm:ss")]
        public System.DateTime? ModifiTime { get; set; }

    }

}